package seedswap

class Seed {

    static constraints = {
		name(blank:false, maxSize:50)
		scientificName(blank:false)
		growingSeason(inList:["GA","NC","SC","VA"])
		growingRegion()
		cost(min:0.0, max:100.0)
		numSeeds(min:0, max:1000)
	
    }
	
	static hasMany=[registrations:Registration]
	
	String toString(){
		return "${name}, ${scientificName}"}
	
	String name
	String scientificName
	String growingSeason
	String growingRegion
	BigDecimal cost
	Integer numSeeds=1000
	
}
